import { createRoot } from "react-dom/client";
import "./index.css";
import { RouterProvider } from "react-router-dom";
import { addAsyncRoute, router } from "./router/index.tsx";

addAsyncRoute([
  { path: '/ActivityList', componentStr: '/activity/ActivityList' },
  { path: '/ActivityVerify', componentStr: '/activity/ActivityVerify' }
])

createRoot(document.getElementById("root")!).render(<RouterProvider router={router} fallbackElement={<p>loading</p>} />);
